@import "transition/index.less";
@import "var/index.less";
@import "public.less";
@import "./theme.less";
@import "./entry.css";

// input:-webkit-autofill {
//   box-shadow: 0 0 0 1000px white inset !important;
// }

:-webkit-autofill {
  transition: background-color 5000s ease-in-out 0s !important;
}

html {
  overflow: hidden;
  text-size-adjust: 100%;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: visible;
  overflow-x: hidden;
  color: var(--text-color);

  &.color-weak {
    filter: invert(80%);
  }

  &.gray-mode {
    filter: grayscale(100%);
    filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
  }
}

a:focus,
a:active,
button,
div,
svg,
span {
  outline: none;
}

/** 打包后夜间模式样式有问题 在这里覆盖 */
html[data-theme="dark"] {
  /** 菜单边框 */
  ul li {
    border: none;
  }

  ul li:hover {
    color: inherit !important;
    border: none;
    box-shadow: none;
  }

  /** 日期输入框 */
  .ant-picker-input > input {
    border: none;
  }

  .ant-picker-input > input:focus {
    color: inherit !important;
    box-shadow: none;
  }
}

.ant-input-number {
  width: 100%;
}

// 保持 和 windi 一样的全局样式，减少升级带来的影响
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ant-table-cell{
  text-align: center;
}

.wmm-tail {
  margin-right: 6px;
  width: 20px;
  height: 20px;
  background: #E85B5B;
  text-align: center;
  line-height: 20px;
  border-radius: 50%;
  position: relative;
  color: #fff;

  span {
    position: absolute;
    z-index: 11;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  &::after {
    content: "";
    width: 0;
    height: 0;
    border: 10px solid;
    border-color: transparent transparent #E85B5B;
    position: absolute;
    left: -4px;
    bottom: 1px;
  }
}

.wmm-sub-title {
  font-weight: 500;
  font-size: 18px;
  color: #333333;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  left: 10px;
  &::before {
    content: "";
    width: 4px;
    height: 20px;
    border-radius: 4px  0 0 4px;
    background: #209eff;
    position: absolute;
    left: -10px;
  }
}

:where(.css-dev-only-do-not-override-a3h311).ant-input-textarea-show-count::after{
  position: absolute;
  bottom: -20px;
  right: 10px;
}

.ant-btn-default{
  border-color:unset
}

.ant-table .ant-table-tbody >tr.ant-table-row-selected >td{
  background:  #fff;
}
.ant-table-wrapper .ant-table-tbody >tr.ant-table-row-selected:hover>td{
    background: #fff;
}

.sendmail-acitve {
  color: #209eff;
}
.ell {
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: nowrap;
}